projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ff942b
)
mips: mt76xx: gardena-smart-gateway: Configure GPIOs (digital vs analog)
author
Stefan Roese
<
[email protected]
>
Tue, 9 Oct 2018 06:59:11 +0000
(08:59 +0200)
committer
Daniel Schwierzeck
<
[email protected]
>
Sun, 18 Nov 2018 15:02:23 +0000
(16:02 +0100)
Configure digital vs analog GPIOs as needed on this board.
Signed-off-by: Stefan Roese <
[email protected]
>
Cc: Daniel Schwierzeck <
[email protected]
>
board/gardena/smart-gateway-mt7688/board.c
patch
|
blob
|
history
diff --git
a/board/gardena/smart-gateway-mt7688/board.c
b/board/gardena/smart-gateway-mt7688/board.c
index 5ff546f505cca8de243cbb258616b4ebe68d93c7..838dfc205b3645c4add203c92e8e6257cc405af3 100644
(file)
--- a/
board/gardena/smart-gateway-mt7688/board.c
+++ b/
board/gardena/smart-gateway-mt7688/board.c
@@
-4,14
+4,17
@@
*/
#include <common.h>
-#include <asm/io.h>
+#include <linux/io.h>
+
+#define MT76XX_AGPIO_CFG 0x1000003c
int board_early_init_f(void)
{
- /*
- * Nothing to be done here for this board (no UART setup etc)
- * right now. We might need some pin muxing, so lets keep this
- * function for now.
- */
+ void __iomem *gpio_mode;
+
+ /* Configure digital vs analog GPIOs */
+ gpio_mode = ioremap_nocache(MT76XX_AGPIO_CFG, 0x100);
+ iowrite32(0x00fe01ff, gpio_mode);
+
return 0;
}